package com.web.server.common.utils;

import com.google.common.base.MoreObjects;
import com.web.server.common.cache.RedisHelper;
import com.web.server.common.cache.RedisHelper;

/**
 * Created by LILEI6 on 2016/8/26.
 */
public class SessionUser {
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setJSESSIONID(String  JSESSIONID) {
        this.userId = Long.valueOf(RedisHelper.getInstance().getValue(JSESSIONID));;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("userId", userId)
                .toString();
    }
}
